package com.hong.chapter2;

/**
 * Created by hong on 2018/5/28.
 */
public class SimpleCalculatorStrategy implements  CalculatorStrategy{
    private final  static  double SALARY_RATE =0.1;
    private final  static  double BONUS_PATE =0.1;

    @Override
    public double calculate(double salary, double bonus) {
       return SALARY_RATE * 0.1 + BONUS_PATE * 0.15;
    }
}
